package org.seckill.Common;

/**
 * Created by ASUS on 2017/7/31.
 */
public class SeckillResult<T> {

    private boolean success;

    private T data;

    private String desc;

    public SeckillResult(boolean success, String desc) {
        this.success = success;
        this.desc = desc;
    }

    public SeckillResult(boolean success, T data) {
        this.success = success;
        this.data = data;
    }

    public boolean isSuccess(){
        return success;

    }

    public SeckillResult(boolean success, T data, String desc) {

        this.success = success;
        this.data = data;
        this.desc = desc;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
